﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;

namespace OperGui.Languages
{
    public class LanguageCommands
    {
        private static ICommand openLanguageCommand = new RoutedUICommand("Open Language File...", "OpenLanguage", typeof(LanguageCommands));

        // private static CommandBinding openLanguageCommandBinding = new CommandBinding(openLanguageCommand, new ExecutedRoutedEventHandler(OnOpenLanguageExcuted), new CanExecuteRoutedEventHandler(OnOpenLanguageCanExcuted));

        /// <summary>
        /// 
        /// </summary>
        public static ICommand OpenLanguage
        {
            get { return openLanguageCommand; }
        }

        /// <summary>
        /// 
        /// </summary>
        //public static CommandBinding OpenLanguageBinding
        //{
        //    get { return openLanguageCommandBinding; }
        //}



        internal static void OnOpenLanguageCanExcuted(object sender, CanExecuteRoutedEventArgs e)
        {
            e.CanExecute = true;
        }
    }
}